package id.co.gomobile.assessment

class Test {
	
	static hasOne = [preference: Preference]
    static hasMany = [items: Item]

    static mapping = {
		items sort:'id'
	}
	
	// properties
	String name
	String description
	
	Date dateCreated
	Date lastUpdated
	
    static constraints = {
		name(blank: false, unique: true)
		description(size: 0..2000, nullable: true)
    }
}
